package cn.xn.hrms.infrastructure.dao;
import java.util.Collection;
import java.util.List;

import cn.xn.hrms.api.dto.res.UserDTO;
import cn.xn.hrms.infrastructure.dataobject.UserDO;
import org.apache.ibatis.annotations.Param;

/**
 * @author ysz
 */
public interface UserDao {

    int insertSelective(UserDTO record);

    UserDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserDTO record);

    UserDTO selectByUsername(@Param("username") String username);

    List<UserDO> findAll(@Param("username")String username);

    int updateIsDeletedByIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("idCollection")Collection<Integer> idCollection);

}
